package com.pignest.hotel.beans;

import java.util.HashSet;
import java.util.Set;

import com.pignest.hotel.annotation.Bean;
import com.pignest.hotel.beans.global.BaseBean;

/**
 * MemberLeavel entity.
 * 
 * @author MyEclipse Persistence Tools
 */

@Bean("会员等级")
@SuppressWarnings("unchecked")
public class MemberLevel extends BaseBean {
	private static final long serialVersionUID = 595144085586894359L;
	
	private String memberlevel;//会员等级名称
	private int overdraft;//可透支额度
	private String selfhelplive;//是否可自助入住
	private String selfhelpout;//是否可自助退房
	private int levelPrice;//等级所须充值金额
	private int levelIntegal;//等级所需积分
	private int levelPay;//办理此等级所必须的金额
	
	public int getLevelPrice() {
		return levelPrice;
	}

	public void setLevelPrice(int levelPrice) {
		this.levelPrice = levelPrice;
	}

	public int getLevelIntegal() {
		return levelIntegal;
	}

	public void setLevelIntegal(int levelIntegal) {
		this.levelIntegal = levelIntegal;
	}

	private Set memberPrices = new HashSet(0);

	// Constructors

	/** default constructor */
	public MemberLevel() {
	}
	
	public MemberLevel(String name) {
		this.memberlevel = name;
		this.overdraft = 0;
		this.selfhelplive = "否";
		this.selfhelpout = "否";
		this.levelPrice = 0;
	}

	public String getMemberlevel() {
		return this.memberlevel;
	}

	public void setMemberlevel(String memberlevel) {
		this.memberlevel = memberlevel;
	}

	public int getOverdraft() {
		return this.overdraft;
	}

	public void setOverdraft(int overdraft) {
		this.overdraft = overdraft;
	}

	public String getSelfhelplive() {
		return this.selfhelplive;
	}

	public void setSelfhelplive(String selfhelplive) {
		this.selfhelplive = selfhelplive;
	}

	public String getSelfhelpout() {
		return this.selfhelpout;
	}

	public void setSelfhelpout(String selfhelpout) {
		this.selfhelpout = selfhelpout;
	}

	public Set getMemberPrices() {
		return this.memberPrices;
	}

	public void setMemberPrices(Set memberPrices) {
		this.memberPrices = memberPrices;
	}

	public int getLevelPay() {
		return levelPay;
	}

	public void setLevelPay(int levelPay) {
		this.levelPay = levelPay;
	}

	@Override
	public String toSimpleString() {
		return memberlevel;
	}
}